home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programmer Plus 2007
/
Programmer-Plus-2007.iso
/
Programming
/
High Level Languages
/
Turbo C v3.0
/
Tc3setup.exe
/
EXAMPLES
/
INTRO3.CPP
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1992-02-18
|
278 b
|
16 lines
//INTRO3.CPP--Example from Chapter 3, "An Introduction to C++"
#include <iostream.h>
int main()
{
int pounds;
int total, bags;
pounds = 50;
bags = 1000;
total = bags * pounds;
cout << "There are " << total << "lbs. in 1000 bags of beans\n";
return 0;
}